
public enum DbType {

	 ORACLE ("Oracle 11G")
	,MYSQL  ("MySql InnoDb")
	,POSTGRE ;
	
	
	private String name;
	
	private DbType() {
		
	}
	
	private DbType(String name) {
		
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	
	public DbType getDbType (String name) {
		for ( DbType dbType :   DbType.values() ) {
			if (dbType.getName().equals( name)) {
				return dbType;
			}
		}
		return null;
	}
	
	
	
}
